package xuanke;

public class Teachers extends SchoolPersonnel {

    public Teachers(int number, String name, String sex, Lessons[] lessons) {
        super(number, name, sex, lessons);
    }

    public void OpenLessons(Teachers teacher, int n, Lessons Lessons1) {
        teacher.lessons[n] = Lessons1;
        System.out.println(teacher.name + "老师开设" + teacher.lessons[n].lessons + "课程成功");
    }
}
